home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / lib / openoffice / program / kde-open-url < prev    next >
Text File  |  2008-10-15  |  1KB  |  60 lines

  1. #!/bin/sh
  2.  
  3. # restore search path for dynamic loader to system defaults to
  4. # avoid version clashes of mozilla libraries shipped with OOo
  5. case `uname -s` in
  6.   AIX)
  7.     LIBPATH=$SYSTEM_LIBPATH
  8.     if [ -z "$LIBPATH" ]; then
  9.         unset LIBPATH SYSTEM_LIBPATH
  10.     else
  11.         export LIBPATH; unset SYSTEM_LIBPATH
  12.     fi
  13.     ;;
  14.  
  15.   Darwin)
  16.     DYLD_LIBRARY_PATH=$SYSTEM_DYLD_LIBRARY_PATH
  17.     if [ -z "$DYLD_LIBRARY_PATH" ]; then
  18.         unset DYLD_LIBRARY_PATH SYSTEM_DYLD_LIBRARY_PATH
  19.     else
  20.         export DYLD_LIBRARY_PATH; unset SYSTEM_DYLD_LIBRARY_PATH
  21.     fi
  22.     ;;
  23.  
  24.   HP-UX)
  25.     SHLIB_PATH=$SYSTEM_SHLIB_PATH
  26.     if [ -z "$SHLIB_PATH" ]; then
  27.         unset SHLIB_PATH SYSTEM_SHLIB_PATH
  28.     else
  29.         export SHLIB_PATH; unset SYSTEM_SHLIB_PATH
  30.     fi
  31.     ;;
  32.  
  33.   IRIX*)
  34.     LD_LIBRARYN32_PATH=$SYSTEM_LD_LIBRARYN32_PATH
  35.     if [ -z "$LD_LIBRARYN32_PATH" ]; then
  36.         unset LD_LIBRARYN32_PATH SYSTEM_LD_LIBRARYN32_PATH
  37.     else
  38.         export LD_LIBRARYN32_PATH; unset $SYSTEM_LD_LIBRARYN32_PATH
  39.     fi
  40.     ;;
  41.  
  42.   *)
  43.     LD_LIBRARY_PATH=$SYSTEM_LD_LIBRARY_PATH
  44.     if [ -z "$LD_LIBRARY_PATH" ]; then
  45.         unset LD_LIBRARY_PATH SYSTEM_LD_LIBRARY_PATH
  46.     else
  47.         export LD_LIBRARY_PATH; unset SYSTEM_LD_LIBRARY_PATH
  48.     fi
  49.     ;;
  50. esac
  51.  
  52. # special handling for mailto: uris
  53. if echo $1 | grep '^mailto:' > /dev/null; then
  54.   sensible-ooomua "$1" &
  55. else
  56.   sensible-browser "$1" &
  57. fi
  58.  
  59. exit 0
  60.